<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">

<div class="table-responsive">
    <table class="table table-bordered">
        <thead>
        <tr>
            <th class="text-center"><div class="table-first-id">ID</div></th>
            <th class="text-center" width="12%">发件人</th>
            <th class="text-center" width="23%">收件人</th>
            <th class="text-center" width="25%">通知内容</th>
            <th class="text-center" width="10%">是否批量通知</th>
            <th class="text-center" width="15%">通知时间</th>
            <th class="text-center" width="10%">操作</th>
        </tr>
        </thead>
    </table>

    <div class="J_V_tabContent table-xScrollWrap">
        <table class="table table-bordered table-hover table-xs-content">
            <tbody id="tbodyClasses">
            <tr class="jqgfirstrow" role="row">
                <td class="text-center"><div class="table-first-id">&nbsp;</div></td>
                <td class="text-center" width="12%">&nbsp;</td>
                <td class="text-center" width="23%">&nbsp;</td>
                <td class="text-center" width="25%">&nbsp;</td>
                <td class="text-center" width="10%">&nbsp;</td>
                <td class="text-center" width="15%">&nbsp;</td>
                <td class="text-center" width="10%">&nbsp;</td>
            </tr>

            <tr th:if="not ${#maps.isEmpty(dataMap)}" th:each="affiche:${dataMap['list']}" th:attr="data-id=${affiche['id']}">
                <td class="text-center">
                    <input type="checkbox" class="i-checks" name="id" th:value="${affiche['id']}" th:attr="data-id=${affiche['id']}"/>
                </td>
                <td class="text-center" th:text="${affiche['createUser']['ralName']}">这是发信人</td>
                <td class="text-center">
                    <th:block th:each=" user : ${affiche['user']}">
                        <span th:text="${user['nickname']}">这是收信人</span>
                    </th:block>
                </td>
                <td class="text-center" onclick="return false;" th:utext="${affiche['context']}">这是私信的内容</td>
                <td class="text-center" th:text="${#lists.size(affiche['user'])}==1?'否':'是'">这是私信的状态</td>
                <td class="text-center" th:text="${#strings.substring(affiche['createTime'],0,16)}">这是私信的时间</td>
                <td class="text-center">
                    <a href="javascript:void(0);" class="c-master fs14 ml5" data-toggle="tooltip" data-placement="right" data-original-title="查看" th:attr="data-classId=${affiche['classId']}" th:attrappend="data-afficheRandom=${affiche['afficheRandom']}"><i id="seeLetter" class="fa fa-commenting"></i></a>
                    <a href="javascript:void(0);" class="c-master fs14 ml5 deleteLetter" data-toggle="tooltip" data-placement="right" data-original-title="删除" th:attrappend="data-afficheRandom=${affiche['afficheRandom']}" ><i class="fa fa-trash-o"></i></a>
                </td>
            </tr>

            <tr th:if="${#maps.isEmpty(dataMap)} or ${#lists.isEmpty(dataMap['list'])}">
                <td colspan="9" class="text-center">
                    <div class="noDataTipsBox">
                        <p><span class="c-4e fs16">还没有班级通知~~~</span></p>
                    </div>
                </td>
            </tr>

            </tbody>
        </table>
    </div>
     <!--分页，开始-->
    <div data-th-replace="layout/adminPage"></div>
     <!--分页，结束-->
</div>
